//
//  CacheHelper.h
//  ChangChat
//
//  Created by Cocoa on 2019/8/29.
//  Copyright © 2019 yibai. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MsgItem.h"

#define Cache_Help [CacheHelper helper]
NS_ASSUME_NONNULL_BEGIN

@interface CacheHelper : NSObject

+ (instancetype)helper;
- (void)cacheFileWitType:(MsgType)type fileData:(NSData *)data completion:(void(^)(NSString *filePath))completion;
- (NSString *)newFileNameForMsgType:(MsgType)msgType;
- (NSString *)allFilePathWithMsgType:(MsgType)msgType fileName:(NSString * _Nullable)fileName;
- (NSArray *)allFileName;
- (NSString *)fileSizeWithFileName:(NSString *)fileName;
- (void)cleanFilesWithGroupId:(NSString *)groupId;
- (void)cleanAllFiles;
@end

NS_ASSUME_NONNULL_END
